import request from "../utils/request";

const api_name = '/api/hosp/hospital'

//查询医院列表
export function getPageList(page, limit, data) {
  return request({
    url: `${api_name}/findHospList/${page}/${limit}`,
    method: 'GET',
    params: data
  })
}

//根据医院名称模糊查询
export function getByHosname(hosname) {
  return request({
    url: `${api_name}/findByHospName/${hosname}`,
    method: 'GET'
  })
}

//根据医院编号查询医院信息
export function show(hoscode) {
  return request({
    url: `${api_name}/findHospDetail/${hoscode}`,
    method: 'get'
  })
}

//根据医院编号查询医院科室
export function findDepartment(hoscode) {
  return request({
    url: `${api_name}/department/${hoscode}`,
    method: 'get'
  })
}
